package com.rightsidetech.system.dtos.request.agent;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

@Data
public class AddAgentInfoReq implements Serializable {

    @ApiModelProperty("代理商名称")
    @NotBlank(message = "代理商名称必填项不能为空")
    @Length(max = 20,message = "代理商名称长度过长")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5a-zA-Z0-9-_]+$", message = "代理商名称不能包含特殊符号")
    private String name;

    @ApiModelProperty("负责人名称")
    @NotBlank(message = "负责人必填项不能为空")
    @Length(max = 20,message = "负责人名称长度过长")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]+$", message = "负责人为中文")
    private String principalName;

    @ApiModelProperty("负责人手机号")
    @NotBlank(message = "手机号必填项不能为空")
    @Pattern(regexp = "^1[0-9]{10}$",message = "手机号格式错误")
    private String mobileNo;

    @ApiModelProperty("所属大区id")
    @NotNull(message = "大区必填项不能为空")
    private Long areaId;

    @ApiModelProperty("客服电话")
    @NotBlank(message = "客服电话必填项不能为空")
    @Length(max = 20,message = "客服电话长度过长")
    @Pattern(regexp = "^[0-9-]+$", message = "客服电话格式错误")
    private String customerMobileNo;


}